<%@ taglib prefix="s" uri="http://stripes.sourceforge.net/stripes.tld" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<s:layout-render name="/WEB-INF/jsp/layouts/default.jsp" title="Employee Form">
	<s:layout-component name="content">
		<s:form beanclass="net.learntechnology.examples.s.EmployeeAction">
			<s:hidden name="id"/>
			<table>
				<tr>
					<td class="label"><s:label for="employee.firstName"/>:</td>
					<td><s:text name="employee.firstName" size="40"/></td>
				</tr>
				<tr>
					<td class="label"><s:label for="employee.lastName"/>:</td>
					<td><s:text name="employee.lastName" size="40"/></td>
				</tr>
				<tr>
					<td class="label"><s:label for="employee.age"/>:</td>
					<td><s:text name="employee.age" size="20"/></td>
				</tr>
				<tr>
					<td class="label"><s:label for="employee.department.name"/>:</td>
					<td>
						${employee.department.id}
						<s:select name="employee.department.id">
							<s:options-collection collection="${departments}" label="name" value="id"/>
						</s:select>
					</td>
				</tr>
				<tr>
					<td></td>
					<td>
						<s:submit name="save" />
						<s:submit name="cancel" />
					</td>
				</tr>
			</table>
		</s:form>
	</s:layout-component>
</s:layout-render>
